<template>
  <div class="" draggable="true">
    <el-button @click="totest('/test')">login</el-button>
    <el-row class="mb-4">
      <el-button>Default</el-button>
      <el-button type="primary">Primary</el-button>
      <el-button type="success">Success</el-button>
      <el-button type="info" @click="totest('/myslots')">插槽</el-button>
      <el-button type="warning">Warning</el-button>
      <el-button type="danger">Danger</el-button>
    </el-row>
  </div>
</template>

<script lang="ts" setup>
import {} from 'vue'
import { useRouter } from 'vue-router'
import router from '@/router'
// const router = useRouter()

const totest = (path: string) => {
  router.push(path)
}
</script>
